package com.shuhe.handler;

import com.shuhe.JettyServer;
import org.apache.log4j.Logger;

import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.io.IOException;


public class StopHandler extends HttpServlet {

    private static Logger logger = Logger.getLogger(StopHandler.class);

    protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {
        try {
            JettyServer.stopServer();
        } catch (Exception ex) {
            ex.printStackTrace();
        }
    }


}
